package io.renren.modules.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.app.dao.ApiTokenMapper;
import io.renren.modules.app.entity.ShopUserTokenVo;
import io.renren.modules.app.service.ApiTokenService;
import org.springframework.stereotype.Service;

@Service("tokenService")
public class ApiTokenServiceImpl extends ServiceImpl<ApiTokenMapper, ShopUserTokenVo> implements ApiTokenService {
    @Override
    public ShopUserTokenVo queryByToken(String token) {
        return this.getOne(new QueryWrapper<ShopUserTokenVo>().eq("token", token),false);
    }
}
